import App from "./App.vue";
import router from "./router";
import registerComponents from "./components";
import api from "./api";
import store from "./store";
import registerDirectives from "./directives";
import "./style/index.less";
import "@vueup/vue-quill/dist/vue-quill.snow.css";
import "virtual:uno.css";

const app = createApp(App);

// 挂载全局api
app.provide("$api", api);

// 注册组件
registerComponents(app);
// 注册指令
registerDirectives(app);

app.use(router).use(store).mount("#app");
